let url =
  "http://www.domain.com/?user=anonymous&id=123&id=456&city=%E5%8C%97%E4%BA%AC&enabled"
function parseParam(url) {
  let str = url.split("?")[1]
  let obj = {}
  str.split("&").forEach((item) => {
    let split = item.split("=")
    obj[split[0]] = split[1]
  })
  Object.keys(obj).forEach((item) => {
    if (!obj[item]) {
      obj[item] = true
    }
  })
  return obj
}
console.log(parseParam(url))
